package com.kingschan.jeasytag.sql.parse;

import java.util.HashMap;
import java.util.Map;

import com.kingschan.jeasytag.sql.parse.fieldtype.DateboxAnalysis;
import com.kingschan.jeasytag.sql.parse.fieldtype.NumberboxAnalysis;
import com.kingschan.jeasytag.sql.parse.fieldtype.TextAnalysis;
import com.kingschan.jeasytag.sql.parse.fieldtype.comboboxAnalysis;
/**
 * 
 * @author kingschan
 *date:2013-4-24
 */
public class QueryArgsAnalysisFactory {
	private static Map<String, FieldTypeAnalysis> Analysis = new HashMap<String, FieldTypeAnalysis>();
	static{
		Analysis.put("text", new TextAnalysis());
		Analysis.put("numberbox", new NumberboxAnalysis());
		Analysis.put("datebox", new DateboxAnalysis());
		Analysis.put("combobox", new comboboxAnalysis());
		
	}
	/**
	 *FieldTypeAnalysis
	 * @param editor
	 * @return
	 */
	public static FieldTypeAnalysis getAnalysis(String editor){
		return Analysis.get(editor);
	}
	
}
